3.3099 \(\int (a+b x)^m (c+d x)^{1-m} \, dx\)

Optimal. Leaf size=82 \[ \frac{(b c-a d) (a+b x)^{m+1} (c+d x)^{-m} \left (\frac{b (c+d x)}{b c-a d}\right )^m \, _2F_1\left (m-1,m+1;m+2;-\frac{d (a+b x)}{b c-a d}\right )}{b^2 (m+1)} \]

[Out]

((b*c - a*d)*(a + b*x)^(1 + m)*((b*(c + d*x))/(b*c - a*d))^m*Hypergeometric2F1[-
1 + m, 1 + m, 2 + m, -((d*(a + b*x))/(b*c - a*d))])/(b^2*(1 + m)*(c + d*x)^m)

_______________________________________________________________________________________

Rubi [A]  time = 0.0970032, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105 \[ \frac{(b c-a d) (a+b x)^{m+1} (c+d x)^{-m} \left (\frac{b (c+d x)}{b c-a d}\right )^m \, _2F_1\left (m-1,m+1;m+2;-\frac{d (a+b x)}{b c-a d}\right )}{b^2 (m+1)} \]

Antiderivative was successfully verified.

[In]  Int[(a + b*x)^m*(c + d*x)^(1 - m),x]

[Out]

((b*c - a*d)*(a + b*x)^(1 + m)*((b*(c + d*x))/(b*c - a*d))^m*Hypergeometric2F1[-
1 + m, 1 + m, 2 + m, -((d*(a + b*x))/(b*c - a*d))])/(b^2*(1 + m)*(c + d*x)^m)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 15.9931, size = 66, normalized size = 0.8 \[ - \frac{\left (\frac{b \left (- c - d x\right )}{a d - b c}\right )^{m} \left (a + b x\right )^{m + 1} \left (c + d x\right )^{- m} \left (a d - b c\right ){{}_{2}F_{1}\left (\begin{matrix} m - 1, m + 1 \\ m + 2 \end{matrix}\middle |{\frac{d \left (a + b x\right )}{a d - b c}} \right )}}{b^{2} \left (m + 1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((b*x+a)**m*(d*x+c)**(1-m),x)

[Out]

-(b*(-c - d*x)/(a*d - b*c))**m*(a + b*x)**(m + 1)*(c + d*x)**(-m)*(a*d - b*c)*hy
per((m - 1, m + 1), (m + 2,), d*(a + b*x)/(a*d - b*c))/(b**2*(m + 1))

_______________________________________________________________________________________

Mathematica [C]  time = 0.32624, size = 202, normalized size = 2.46 \[ \frac{c (a+b x)^m (c+d x)^{-m} \left (\frac{3 a d^2 x^2 F_1\left (2;-m,m;3;-\frac{b x}{a},-\frac{d x}{c}\right )}{6 a c F_1\left (2;-m,m;3;-\frac{b x}{a},-\frac{d x}{c}\right )+2 m x \left (b c F_1\left (3;1-m,m;4;-\frac{b x}{a},-\frac{d x}{c}\right )-a d F_1\left (3;-m,m+1;4;-\frac{b x}{a},-\frac{d x}{c}\right )\right )}-\frac{(c+d x) \left (\frac{d (a+b x)}{a d-b c}\right )^{-m} \, _2F_1\left (1-m,-m;2-m;\frac{b (c+d x)}{b c-a d}\right )}{m-1}\right )}{d} \]

Warning: Unable to verify antiderivative.

[In]  Integrate[(a + b*x)^m*(c + d*x)^(1 - m),x]

[Out]

(c*(a + b*x)^m*((3*a*d^2*x^2*AppellF1[2, -m, m, 3, -((b*x)/a), -((d*x)/c)])/(6*a
*c*AppellF1[2, -m, m, 3, -((b*x)/a), -((d*x)/c)] + 2*m*x*(b*c*AppellF1[3, 1 - m,
 m, 4, -((b*x)/a), -((d*x)/c)] - a*d*AppellF1[3, -m, 1 + m, 4, -((b*x)/a), -((d*
x)/c)])) - ((c + d*x)*Hypergeometric2F1[1 - m, -m, 2 - m, (b*(c + d*x))/(b*c - a
*d)])/((-1 + m)*((d*(a + b*x))/(-(b*c) + a*d))^m)))/(d*(c + d*x)^m)

_______________________________________________________________________________________

Maple [F]  time = 0.11, size = 0, normalized size = 0. \[ \int \left ( bx+a \right ) ^{m} \left ( dx+c \right ) ^{1-m}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((b*x+a)^m*(d*x+c)^(1-m),x)

[Out]

int((b*x+a)^m*(d*x+c)^(1-m),x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1),x, algorithm="maxima")

[Out]

integrate((b*x + a)^m*(d*x + c)^(-m + 1), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left ({\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1),x, algorithm="fricas")

[Out]

integral((b*x + a)^m*(d*x + c)^(-m + 1), x)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x+a)**m*(d*x+c)**(1-m),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int{\left (b x + a\right )}^{m}{\left (d x + c\right )}^{-m + 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x + a)^m*(d*x + c)^(-m + 1),x, algorithm="giac")

[Out]

integrate((b*x + a)^m*(d*x + c)^(-m + 1), x)